<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/x-icon" href="img/favicon.ico">
    <link rel="stylesheet" href="./css/index.min.css">
    <link rel="stylesheet" href="../common/css/header.min.css">
    <link rel="stylesheet" href="../common/css/footer.min.css">
    <link rel="stylesheet" href="../common/css/reset.min.css">
    <link rel="stylesheet" href="../common/css/common.min.css">
    <link rel="stylesheet" href="../common/font//iconfont.css">
    <title>Dickies官方网站</title>
</head>

<body>
    <div class="header"></div>
    <div class="container">
        <div class="banner content">
            <a>
                <img src="img/10043.png" alt="左">
            </a>
            <ul class="imglist">
                <li>
                    <img src="img/10001.jpg" alt="banner1">
                </li>
                <li>
                    <img src="img/10003.jpg" alt="banner2">
                </li>
                <li>
                    <img src="img/10002.jpg" alt="banner3">
                </li>
                <li>
                    <img src="img/10001.jpg" alt="banner1">
                </li>
            </ul>
            <a>
                <img src="img/10045.png" alt="右">
            </a>
        </div>
        <div class="bigimg content">
            <a href="" class="fl">
                <img src="img/10006.jpg" alt="男装">
            </a>
            <a href="" class="fl">
                <img src="img/10007.jpg" alt="女装">
            </a>
        </div>
        <!-- ---- -->
        <div class="newshop">
            <p>新品推荐</p>
            <ul class="newshop-title">
                <li class="active">男装</li>
                <li>/</li>
                <li class="">女装</li>
            </ul>
            <!-- 男 -->
            <div class="newshop-banner man">
                <div class="newshop-banner-l man-l">
                    <img src="img/10044.png" alt="左">
                </div>
                <div class="newshop-banner-r man-r">
                    <img src="img/10042.png" alt="右">
                </div>
                <div class="newshop-banner-con">
                    <div class="newshop-banner-img">
                        <dl>
                            <dt>
                            <a href="">
                                <img src="img/10010.jpg" alt="商品">
                            </a>
                        </dt>
                            <dd>
                                <a href="">Dickies男式logo印花教练防风夹克</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                            <a href="">
                                <img src="img/10011.jpg" alt="商品">
                            </a>
                        </dt>
                            <dd>
                                <a href="">Dickies男士logo印花埃森威尔夹克</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                            <a href="">
                                <img src="img/10012.jpg" alt="商品">
                            </a>
                        </dt>
                            <dd>
                                <a href="">Dickies男式链条绣花连帽长袖卫衣</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                            <a href="">
                                <img src="img/10013.jpg" alt="商品">
                            </a>
                        </dt>
                            <dd>
                                <a href="">Dickies男式字母印花圆领宽松卫衣</a>
                            </dd>
                        </dl>

                    </div>

                </div>
            </div>
            <!-- 女 -->
            <div class="newshop-banner wmman">
                <div class="newshop-banner-l wmman-l">
                    <img src="img/10044.png" alt="左">
                </div>
                <div class="newshop-banner-r wmman-r">
                    <img src="img/10042.png" alt="右">
                </div>
                <div class="newshop-banner-con">
                    <div class="newshop-banner-img" id="wmman">
                        <dl>
                            <dt>
                <a href="">
                    <img src="img/10021.jpg" alt="商品">
                </a>
            </dt>
                            <dd>
                                <a href="">Dickies女式绣花毛圈布连帽卫衣</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                <a href="">
                    <img src="img/10022.jpg" alt="商品">
                </a>
            </dt>
                            <dd>
                                <a href="">Dickies女式印花拼接腰部抽绳卫裤</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                <a href="">
                    <img src="img/10023.jpg" alt="商品">
                </a>
            </dt>
                            <dd>
                                <a href="">Dickies女式标签装饰短袖连衣裙</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                <a href="">
                    <img src="img/10024.jpg" alt="商品">
                </a>
            </dt>
                            <dd>
                                <a href="">Dickies女式撞色拼接连帽宽松卫衣</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                <a href="">
                    <img src="img/10025.jpg" alt="商品">
                </a>
            </dt>
                            <dd>
                                <a href="">Dickies女式绣花徽章腰部抽绳卫裤</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>
                <a href="">
                    <img src="img/10027.jpg" alt="商品">
                </a>
            </dt>
                            <dd>
                                <a href="">Dickies女式脚口橡筋多袋工装裤</a>
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
        <div class="brand-news">
            <p>品牌动态</p>
            <div>
                <dl>
                    <dt>
                        <a href="">
                            <img src="img/10033.jpg" alt="品牌动态">
                        </a>
                    </dt>
                    <dd>
                        <a href="">街舞云课｜学一次就炸裂，Hip Hop来造！</a>
                    </dd>
                </dl>
                <dl>
                    <dt>
                        <a href="">
                            <img src="img/10034.jpg" alt="品牌动态">
                        </a>
                    </dt>
                    <dd>
                        <a href="">神秘大神驾到，传说中的Urban一探究竟</a>
                    </dd>
                </dl>
                <dl>
                    <dt>
                        <a href="">
                            <img src="img/10035.jpg" alt="品牌动态">
                        </a>
                    </dt>
                    <dd>
                        <a href="">街舞云课｜15秒掌握，Locking来造！</a>
                    </dd>
                </dl>
                <dl>
                    <dt>
                        <a href="">
                            <img src="img/10036.jpg" alt="品牌动态">
                        </a>
                    </dt>
                    <dd>
                        <a href="">听说你的短裤想请假？</a>
                    </dd>
                </dl>
                <dl>
                    <dt>
                        <a href="">
                            <img src="img/10037.jpg" alt="品牌动态">
                        </a>
                    </dt>
                    <dd>
                        <a href="">假如江浙沪人民加了Dickies的微信……</a>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="bigimg2 content">
            <div id="biging">
                <a href="" class="fl a">
                    <img src="img/10009.jpg" alt="图">
                </a>
                <a href="" class="fl b">
                    <img src="img/10008.jpg" alt="图">
                </a>
                <a href="" class="c">
                    <img src="img/10004.jpg" alt="图">
                </a>
            </div>
        </div>
    </div>
    <div class="foot"></div>
</body>

</html>
<script src="../jquery-3.5.1/jquery-3.5.1.min.js"></script>
<script src="js/index.js"></script>
<script>
    $(".header").load("../common/html/header.html", function() {
        window.onscroll = function() {
            // console.log($(window).scrollTop())
            if ($(window).scrollTop() > 70) {
                $(".header-bar-menus-t").css({
                    height: 45,
                    marginTop: 0,
                    width: "100%",
                    backgroundColor: "#fff",
                    zIndex: 1000,
                    position: "fixed",
                    top: 0,
                })
                $(".header-bar-menus-t-con .logo img").css({
                    width: 70,
                })
                $(".header-bar-menus-t-con .logo").css({
                    position: "absolute",
                    left: 10,
                    top: 3,
                    zIndex: 2000,
                })
            }
            if ($(window).scrollTop() < 70) {
                $(".header-bar-menus-t").css({
                    height: 45,
                    marginTop: 30,
                    width: "100%",
                    backgroundColor: "#fff",
                    zIndex: 1000,
                    position: "",
                    top: "",
                })
                $(".header-bar-menus-t-con .logo img").css({
                    width: 170,
                })
                $(".header-bar-menus-t-con .logo").css({
                    position: "absolute",
                    left: 10,
                    top: -30,
                    zIndex: 2000,
                })
            }
        }
    })

    $(".foot").load("../common/html/footer.html", function() {
        $(".nav li").eq(2).click(function() {
            // $(window).scrollTop(0);
            animation(window, 0);
        })

        function animation(obj, target, fn1) {
            // console.log(fn1);
            // fn是一个回调函数，在定时器结束的时候添加
            // 每次开定时器之前先清除掉定时器
            clearInterval(obj.timer);
            obj.timer = setInterval(function() {
                // 步长计算公式  越来越小
                // 步长取整
                var step = (target - obj.pageYOffset) / 10;
                step = step > 0 ? Math.ceil(step) : Math.floor(step);
                if (obj.pageYOffset == target) {
                    clearInterval(obj.timer);
                    // 如果fn1存在，调用fn
                    if (fn1) {
                        fn1();
                    }
                } else {
                    // 每30毫秒就将新的值给obj.left
                    window.scroll(0, obj.pageYOffset + step);
                }
            }, 30)
        }
    })
</script>